﻿namespace Wechat_PublicNumber
{
    public static class Extension
    {
        public static bool BetweenOffset(this decimal value, decimal compareValue, decimal offset)
        {
            return value >= compareValue - offset && value <= compareValue + offset;
        }
    }
}
